<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$meta_title}</h2>
    </div>
    <form action="{:U('save')}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">经纪人姓名<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$data.name}">
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">登录密码<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="password" value="{$data.password}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">手机号码<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="phone" value="{$data.phone}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">状态<span class="check-tips"></span></label>
            <div class="controls">
                <label class="radio"><input type="radio" name="status" value="1" checked >正常</label>
                <label class="radio"><input type="radio" name="status" value="0" <php>if(isset($data['status'])&&$data['status']!=1)echo 'checked';</php> >停用</label>
            </div>
        </div>




        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
        <input type="hidden"  name="id" value="{$data.id}" >
    </form>
</block>

<block name="script">
    <script type="text/javascript">

        //导航高亮
        highlight_subnav('{:U('Introducer/index')}');
    </script>
</block>
